package com.bdqn.entity;

/**
 * <h3>项目名称:demo02222</h3>
 * <p>本API描述:学生类</p>
 * <p>@author : AliyZhang</p>
 * <p>@date : 2021-02-22 17:15</p>
 **/
public class Stu {
    private int sid;
    private String sname;
    private String spwd;
    private String gender;
    private int gid;

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSpwd() {
        return spwd;
    }

    public void setSpwd(String spwd) {
        this.spwd = spwd;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public Stu(String sname, String spwd, String gender, int gid) {
        this.sname = sname;
        this.spwd = spwd;
        this.gender = gender;
        this.gid = gid;
    }

    public Stu(int sid, String sname, String spwd, String gender, int gid) {
        this.sid = sid;
        this.sname = sname;
        this.spwd = spwd;
        this.gender = gender;
        this.gid = gid;
    }

    public Stu() {
    }

    @Override
    public String toString() {
        return "学生表" +
                "学生ID：" + sid +
                ", 学生姓名：'" + sname + '\'' +
                ", 密码：'" + spwd + '\'' +
                ", 性别：'" + gender + '\'' +
                ", 年级编号：" + gid +
                '；';
    }
}
